import request from '@/utils/request'


//获取商品列表数据
export function getgoodslist(params) {
  return request({
    url: '/admin/goods/list',
    method: 'get',
    params
  })
}

// 获取商品评论数据  /comment/list
export function getcommentlist(params) {
  return request({
    url: '/admin/comment/list',
    method: 'get',
    params
  })
}

// 回复评论/admin/order/reply
export function replycomment(data) {
  return request({
    url: '/admin/order/reply',
    method: 'post',
    data
  })
}

//删除评论 admin/comment/delete

export function deletecomment(data) {
  return request({
    url: '/admin/comment/delete',
    method: 'post',
    data
  })
}